Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement string_to_not_be_blank assertion #15

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

patrik-kuehl
Copy link
Contributor

@patrik-kuehl patrik-kuehl commented Jun 19, 2024

This PR implements the expect/string_to_not_be_blank assertion to assert that a given string is neither empty nor consists only of whitespace characters.

I'm not quite sure if my decision to transform the value of actual via string.inspect to make it easier to read, especially in cases where users are presented with whitespace-only strings, aligns well with your prior decisions.

Simply outputting the value makes it hard to read since, well, we're looking at strings that potentially consist only of whitespace. I could also remove the double quotes if this is more desirable.

@patrik-kuehl patrik-kuehl force-pushed the implement-string_to_not_be_blank-assertion branch from d3f4f74 to da26f24 Compare August 1, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant